package cn.edu.zju.gis.disasterBE.sever.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;

@Data
@TableName("search_tweet_emotionvalue")
@ApiModel("推特情感表")
public class TwitterEmotion implements Entity<String>{

    @TableId(value = "tweet_id", type = IdType.AUTO)
    @ApiModelProperty(value = "推特id")
    private String tweetId;

    @TableField(value = "affect")
    @ApiModelProperty(value = "情感指数")
    private Double affect;

    @TableField(value = "positive")
    @ApiModelProperty(value = "正向情感指数")
    private Double positive;

    @TableField(value = "negative")
    @ApiModelProperty(value = "负向情感指数")
    private Double negative;


    @Override
    public String id()
    {
        return tweetId;
    }
}
